package com.edu.hre.struts.form.pim;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.apache.struts.action.ActionForm;
import org.apache.struts.upload.FormFile;
import org.apache.struts.util.LabelValueBean;

import com.edu.hre.common.utils.CommonUtils;

public class EmpJobUpdateForm extends ActionForm {
	
	private int id = 0;
	private int empNumber;

	private int jobTitle;
	private int empStatus;
	private int jobCategory;
	private String joinedDate;
	private int subUnit;
	private int location;
	private int terminated;
	private int terminationReason;
	private Date startDate;
	private Date endDate;
	private FormFile contractFile;

	private String message = "";
	private boolean isAddNew = true;
	private boolean success = false;
	
	private List<LabelValueBean> allJobTitles = new ArrayList<LabelValueBean>();
	private List<LabelValueBean> allEmpStatuses = new ArrayList<LabelValueBean>();
	private List<LabelValueBean> allJobCategories = new ArrayList<LabelValueBean>();
	private List<LabelValueBean> allSubUnits = new ArrayList<LabelValueBean>();
	private List<LabelValueBean> allLocations = new ArrayList<LabelValueBean>();
	private List<LabelValueBean> allTerminationReasons = new ArrayList<LabelValueBean>();
	private List<LabelValueBean> allTerminatedStatuses = new ArrayList<LabelValueBean>();
	
	public EmpJobUpdateForm() {

	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public boolean isAddNew() {
		return isAddNew;
	}

	public void setAddNew(boolean isAddNew) {
		this.isAddNew = isAddNew;
	}
	
	public boolean getIsAddNew() {
		return isAddNew;
	}

	public void setIsAddNew(boolean isAddNew) {
		this.isAddNew = isAddNew;
	}

	public int getEmpNumber() {
		return empNumber;
	}

	public void setEmpNumber(int empNumber) {
		this.empNumber = empNumber;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getStartDate() {
		return CommonUtils.dateToString(startDate);
	}

	public void setStartDate(String startDate) {
		this.startDate = CommonUtils.stringToDate(startDate);
	}

	public String getEndDate() {
		return CommonUtils.dateToString(endDate);
	}

	public void setEndDate(String endDate) {
		this.endDate = CommonUtils.stringToDate(endDate);
	}

	public int getJobTitle() {
		return jobTitle;
	}

	public void setJobTitle(int jobTitle) {
		this.jobTitle = jobTitle;
	}

	public int getEmpStatus() {
		return empStatus;
	}

	public void setEmpStatus(int empStatus) {
		this.empStatus = empStatus;
	}

	public int getJobCategory() {
		return jobCategory;
	}

	public void setJobCategory(int jobCategory) {
		this.jobCategory = jobCategory;
	}

	public String getJoinedDate() {
		return joinedDate;
	}

	public void setJoinedDate(String joinedDate) {
		this.joinedDate = joinedDate;
	}

	public int getSubUnit() {
		return subUnit;
	}

	public void setSubUnit(int subUnit) {
		this.subUnit = subUnit;
	}

	public int getLocation() {
		return location;
	}

	public void setLocation(int location) {
		this.location = location;
	}

	public int getTerminated() {
		return terminated;
	}

	public void setTerminated(int terminated) {
		this.terminated = terminated;
	}

	public int getTerminationReason() {
		return terminationReason;
	}

	public void setTerminationReason(int terminationReason) {
		this.terminationReason = terminationReason;
	}

	public FormFile getContractFile() {
		return contractFile;
	}

	public void setContractFile(FormFile contractFile) {
		this.contractFile = contractFile;
	}

	public List<LabelValueBean> getAllJobTitles() {
		return allJobTitles;
	}

	public void setAllJobTitles(List<LabelValueBean> allJobTitles) {
		this.allJobTitles = allJobTitles;
	}

	public List<LabelValueBean> getAllEmpStatuses() {
		return allEmpStatuses;
	}

	public void setAllEmpStatuses(List<LabelValueBean> allEmpStatuses) {
		this.allEmpStatuses = allEmpStatuses;
	}

	public List<LabelValueBean> getAllJobCategories() {
		return allJobCategories;
	}

	public void setAllJobCategories(List<LabelValueBean> allJobCategories) {
		this.allJobCategories = allJobCategories;
	}

	public List<LabelValueBean> getAllSubUnits() {
		return allSubUnits;
	}

	public void setAllSubUnits(List<LabelValueBean> allSubUnits) {
		this.allSubUnits = allSubUnits;
	}

	public List<LabelValueBean> getAllLocations() {
		return allLocations;
	}

	public void setAllLocations(List<LabelValueBean> allLocations) {
		this.allLocations = allLocations;
	}

	public List<LabelValueBean> getAllTerminationReasons() {
		return allTerminationReasons;
	}

	public void setAllTerminationReasons(List<LabelValueBean> allTerminationReasons) {
		this.allTerminationReasons = allTerminationReasons;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public boolean isSuccess() {
		return success;
	}
	
	public boolean getSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public List<LabelValueBean> getAllTerminatedStatuses() {
		return allTerminatedStatuses;
	}

	public void setAllTerminatedStatuses(List<LabelValueBean> allTerminatedStatuses) {
		this.allTerminatedStatuses = allTerminatedStatuses;
	}
}
